<?php /* Smarty version 2.6.26, created on 2018-07-20 02:34:02
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/bill/withdraw.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>用户提现</span></div>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>提现为手动提现，用户申请提现，平台审核通过并支付，确认支付即可。</p> 
		<p>无法支付或者支付出现错误，予以驳回，直至通过为止。</p>
	</div> 
</div>
<div class="filter"> 
	<a href="?m=bill&a=withdraw" class="<?php if ($_GET['pay_status'] == ''): ?>option_ch<?php else: ?>option<?php endif; ?>">全部</a>
	<a href="?m=bill&a=withdraw&pay_status=0" class="<?php if ($_GET['pay_status'] == '0'): ?>option_ch<?php else: ?>option<?php endif; ?>">申请提现</a>
	<a href="?m=bill&a=withdraw&pay_status=1" class="<?php if ($_GET['pay_status'] == '1'): ?>option_ch<?php else: ?>option<?php endif; ?>">支付成功</a>
	<a href="?m=bill&a=withdraw&pay_status=2" class="<?php if ($_GET['pay_status'] == '2'): ?>option_ch<?php else: ?>option<?php endif; ?>">支付驳回</a>
</div> 
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="80">编号</th>
				<th width="60">类型</th>
				<th width="150">申请账户</th>
				<th width="100">提现金额</th> 
				<th width="110">操作</th>
				<th width="80">支付状态</td> 
				<th width="120">支付时间</th>
				<th width="120">申请时间</th> 
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']['list']): ?>
			<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>
					<td><?php echo $this->_tpl_vars['i']['id']; ?>
</td> 
					<td><?php if ($this->_tpl_vars['i']['spid'] == '0'): ?>用户<?php else: ?><span style="color:#FF0000; font-weight:bold;">商户</span><?php endif; ?></td>
					<td><?php echo $this->_tpl_vars['i']['username']; ?>
</td>
					<td><?php echo $this->_tpl_vars['i']['price']; ?>
</td>  
					<td><a href="?m=bill&a=withdraw_do&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="edit">结算操作</a></td>
					<td>
						<?php if ($this->_tpl_vars['i']['pay_status'] == '1'): ?>
							支付成功
						<?php elseif ($this->_tpl_vars['i']['pay_status'] == '2'): ?>
							<span style="color:#D7D217; font-weight:bold;">支付驳回</span>
						<?php else: ?>
							<span style="color:#FF0000; font-weight:bold;">申请支付</span>
						<?php endif; ?>
					</td>
					<td><?php if ($this->_tpl_vars['i']['pay_status'] == '1'): ?><?php echo $this->_tpl_vars['i']['pay_time']; ?>
<?php else: ?>/<?php endif; ?></td>
					<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td> 
					<td></td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
	  		<tr><td colspan="9">还没有数据</td></tr>
		<?php endif; ?>
		</tbody> 
	</table> 
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>